/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.LoaiTaiKhoanBLL;
import edu.nii.qlks.DataTransferObject.LoaiTaiKhoanInfo;
import java.util.Vector;

/**
 *
 * @author MARS_NHO
 */
public class LoaiTaiKhoanControl {
    LoaiTaiKhoanBLL TaiKhoan = new LoaiTaiKhoanBLL();
    
    public Vector LayDS() throws Exception{
        return TaiKhoan.LayDS();
    }
    
    public void Insert(LoaiTaiKhoanInfo loaiTaiKhoanInfo) throws Exception{
        TaiKhoan.Insert(loaiTaiKhoanInfo);
    }
    
    public void Update(LoaiTaiKhoanInfo loaiTaiKhoanInfo) throws Exception{
        TaiKhoan.Update(loaiTaiKhoanInfo);
    }
    
    public void Delete(LoaiTaiKhoanInfo loaiTaiKhoanInfo) throws Exception{
        TaiKhoan.Delete(loaiTaiKhoanInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
        return  TaiKhoan.TaoMaTuDong(maGoc, batDau);
    }
    
    public Vector LayDS_TenLoaiTaiKhoan(String TenLoaiTaiKhoan) throws Exception{
        return TaiKhoan.LayDS_TenLoaiTaiKhoan(TenLoaiTaiKhoan);
    }
}
